This makes a lot more sense.
}
/*< private >
- * gdk_gl_context_flush_buffer:
+ * gdk_gl_context_end_frame:
* @context: a #GdkGLContext
* @painted: The area that has been redrawn this frame
* @damage: The area that we know is actually different from the last frame
* Since: 3.16
*/
void
-gdk_gl_context_flush_buffer (GdkGLContext *context,
- cairo_region_t *painted,
- cairo_region_t *damage)
+gdk_gl_context_end_frame (GdkGLContext *context,
+ cairo_region_t *painted,
+ cairo_region_t *damage)
{
g_return_if_fail (GDK_IS_GL_CONTEXT (context));
- GDK_GL_CONTEXT_GET_CLASS (context)->flush_buffer (context, painted, damage);
+ GDK_GL_CONTEXT_GET_CLASS (context)->end_frame (context, painted, damage);
}
/**
GObjectClass parent_class;
void (* update) (GdkGLContext *context);
- void (* flush_buffer) (GdkGLContext *context,
- cairo_region_t *painted,
- cairo_region_t *damage);
+ void (* end_frame) (GdkGLContext *context,
+ cairo_region_t *painted,
+ cairo_region_t *damage);
gboolean (* texture_from_surface) (GdkGLContext *context,
- cairo_surface_t *surface,
- cairo_region_t *region);
+ cairo_surface_t *surface,
+ cairo_region_t *region);
};
-void gdk_gl_context_flush_buffer (GdkGLContext *context,
- cairo_region_t *painted,
- cairo_region_t *damage);
+void gdk_gl_context_end_frame (GdkGLContext *context,
+ cairo_region_t *painted,
+ cairo_region_t *damage);
G_END_DECLS
cairo_region_destroy (opaque_region);
- gdk_gl_context_flush_buffer (window->gl_paint_context,
- window->current_paint.region,
- window->active_update_area);
+ gdk_gl_context_end_frame (window->gl_paint_context,
+ window->current_paint.region,
+ window->active_update_area);
if (epoxy_has_gl_extension ("GL_GREMEDY_frame_terminator"))
glFrameTerminatorGREMEDY();
}
static void
-gdk_wayland_gl_context_flush_buffer (GdkGLContext *context,
- cairo_region_t *painted,
- cairo_region_t *damage)
+gdk_wayland_gl_context_end_frame (GdkGLContext *context,
+ cairo_region_t *painted,
+ cairo_region_t *damage)
{
GdkWindow *window = gdk_gl_context_get_window (context);
GdkDisplay *display = gdk_window_get_display (window);
GdkGLContextClass *context_class = GDK_GL_CONTEXT_CLASS (klass);
context_class->update = gdk_wayland_gl_context_update;
- context_class->flush_buffer = gdk_wayland_gl_context_flush_buffer;
+ context_class->end_frame = gdk_wayland_gl_context_end_frame;
}
static void
}
static void
-gdk_x11_gl_context_flush_buffer (GdkGLContext *context,
- cairo_region_t *painted,
- cairo_region_t *damage)
+gdk_x11_gl_context_end_frame (GdkGLContext *context,
+ cairo_region_t *painted,
+ cairo_region_t *damage)
{
GdkX11GLContext *context_x11 = GDK_X11_GL_CONTEXT (context);
GdkWindow *window = gdk_gl_context_get_window (context);
GdkGLContextClass *context_class = GDK_GL_CONTEXT_CLASS (klass);
context_class->update = gdk_x11_gl_context_update;
- context_class->flush_buffer = gdk_x11_gl_context_flush_buffer;
+ context_class->end_frame = gdk_x11_gl_context_end_frame;
context_class->texture_from_surface = gdk_x11_gl_context_texture_from_surface;
}